import { Toast } from "vant";

function limit(needUrl, text) {
  if (sessionStorage.getItem("uid")) {
    this.$router.push(needUrl);
  } else {
    Toast(text);
  }
}

export { limit };
